package com.demo.study.structural.d01_adapter;

/**
 * @author Baymax
 * @since 2021/1/18
 */
public class Wrapper {
    public static void main(String[] args) {
        TargetAble3 wrapper1 = new TargetAble3Wrapper1();
        wrapper1.test1();

        TargetAble3 wrapper2 = new TargetAble3Wrapper2();
        wrapper2.test2();
    }

}

class TargetAble3Wrapper1 extends TargetAble3 {
    @Override
    public void test1() {
        System.out.println("TargetAble3Wrapper1 test1 start...");
    }
}

class TargetAble3Wrapper2 extends TargetAble3 {
    @Override
    public void test2() {
        System.out.println("TargetAble3Wrapper1 test2 start...");
    }
}